/*
** ADOBE SYSTEMS INCORPORATED
** Copyright 2012 Adobe Systems Incorporated
** All Rights Reserved.
**
** NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the
** terms of the Adobe license agreement accompanying it.  If you have received this file from a
** source other than Adobe, then your use, modification, or distribution of it requires the prior
** written permission of Adobe.
*/
#include <stdio.h>
#include <string.h>
#include "MurmurHash3.h"

// This simple app does exactly the same as 'swcdemo.as' except in C++.

int main()
{
    const char* words[] = {
        "foo",
        "bar",
        "waz"
    };
    
    for(int i=0; i<3; i++) {
        uint32_t seed = 42;
        uint32_t result;
        MurmurHash3_x86_32(words[i], strlen(words[i]), seed, &result);
        printf("hash of '%s' is: %u\n", words[i], result);
    }
}
